package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @ExpRecComment
 * @体验推荐评论(exp_rec_comment)
 * @version : Ver 1.0
 */
@TableName("exp_rec_comment")
public class ExpRecComment implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:商品评价表
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:体验推荐id
	 * @字段:er_id BIGINT(19)
	 */
	private Long erId;


	/**
	 * @备注:用户id
	 * @字段:muser_id BIGINT(19)
	 */
	private Long muserId;

	/**
	 * 评论用户名
	 */
	@TableField(exist = false)
	private String userName;

	/**
	 * 评论用户头像
	 */
	@TableField(exist = false)
	private String avatarUrl;
	/**
	 *会员等级 会员等级(初始 V1 消费总额20000 V2，50000 V3，100000 V4,200000 V5）
	 */
	@TableField(exist = false)
	private Integer memberLevel;




	/**
	 * @备注:评价内容
	 * @字段:contents TEXT(65535)
	 */
	private String contents;


	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;


	public ExpRecComment(){
	}

	public ExpRecComment(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setErId(Long erId) {
		this.erId = erId;
	}

	public Long getErId() {
		return this.erId;
	}


	public void setMuserId(Long muserId) {
		this.muserId = muserId;
	}

	public Long getMuserId() {
		return this.muserId;
	}


	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getContents() {
		return this.contents;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public Integer getMemberLevel() {
		return memberLevel;
	}

	public void setMemberLevel(Integer memberLevel) {
		this.memberLevel = memberLevel;
	}

/*	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}*/
}
